package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 *  实体类
 * 表名：sys_check_rule
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_check_rule")
public class SysCheckRule implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键id
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 32)
    private String id;
    
    /**
     * 规则名称
     */
    @Column(name = "rule_name", length = 100)
    private String ruleName;
    
    /**
     * 规则Code
     */
    @Column(name = "rule_code", length = 100)
    private String ruleCode;
    
    /**
     * 规则JSON
     */
    @Column(name = "rule_json", length = 1024)
    private String ruleJson;
    
    /**
     * 规则描述
     */
    @Column(name = "rule_description", length = 200)
    private String ruleDescription;
    
    /**
     * 更新人
     */
    @Column(name = "update_by", length = 32)
    private String updateBy;
    
    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    /**
     * 创建人
     */
    @Column(name = "create_by", length = 32)
    private String createBy;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    @Override
    public String toString() {
        return "SysCheckRule{" +
            "id=" + id +
            ", ruleName=" + ruleName +
            ", ruleCode=" + ruleCode +
            ", ruleJson=" + ruleJson +
            ", ruleDescription=" + ruleDescription +
            ", updateBy=" + updateBy +
            ", updateTime=" + updateTime +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
        '}';
    }
} 